<template>
  <div class="house-details">
    <van-nav-bar title="秋月枫舍" left-arrow @click-left="$router.back()" />
    <div class="pic">
      <img src="http://liufusong.top:8080/uploads/upload_926b41aa5c854ea5c84dae367a106deb.jpg" alt />
    </div>
    <div class="house-info">
      <div class="title">
        <h3>你瞅啥</h3>
        <span>近地铁</span>
      </div>
      <div class="tip">
        <div class="price">
          <p>
            2500
            <span>/月</span>
          </p>
          <span>租金</span>
        </div>
        <div class="type">
          <p>二室</p>
          <span>房型</span>
        </div>
        <div class="area">
          <p>40平米</p>
          <span>面积</span>
        </div>
      </div>
      <div class="details">
        <div class="left">
          <p>
            装修：
            <span>精装</span>
          </p>
          <p>
            楼层：
            <span>中楼层</span>
          </p>
        </div>
        <div class="right">
          <p>
            朝向：
            <span>北</span>
          </p>
          <p>
            类型：
            <span>普通住宅</span>
          </p>
        </div>
      </div>
    </div>
    <div class="map">这是地图</div>
    <div class="assort">
      <div class="assort-title">
        <h3>房屋配套</h3>
      </div>
      <div class="assort-list">
        <van-grid :column-num="5" :border="false">
          <van-grid-item icon="photo-o" text="衣柜" />
          <van-grid-item icon="photo-o" text="洗衣机" />
          <van-grid-item icon="photo-o" text="空调" />
          <van-grid-item icon="photo-o" text="天然气" />
          <van-grid-item icon="photo-o" text="冰箱" />
          <van-grid-item icon="photo-o" text="暖气" />
          <van-grid-item icon="photo-o" text="电视" />
          <van-grid-item icon="photo-o" text="热水器" />
          <van-grid-item icon="photo-o" text="宽带" />
          <van-grid-item icon="photo-o" text="沙发" />
        </van-grid>
      </div>
    </div>
    <div class="general">
      <div class="general-title">
        <h3>房屋概况</h3>
      </div>
      <div class="house-txt">
        <div class="house-owner">
          <div class="owner">
            <div class="pic">
              <img src='http://liufusong.top:8080/img/avatar.png' alt />
            </div>
            <div class="txt">
              <p>王女士</p>
              <span>
                <van-icon name="shield-o" />已认证房主
              </span>
            </div>
          </div>
          <div class="btn">
            <button>发消息</button>
          </div>
        </div>
        <div class="house-general">
          <p>1.周边配套齐全，地铁四号线陶然亭站，交通便利，公交云集，距离北京南站、西站都很近距离。 2.小区规模大，配套全年，幼儿园，体育场，游泳馆，养老院，小学。 3.人车分流，环境优美。 4.精装两居室，居家生活方便，还有一个小书房，看房随时联系。</p>
        </div>
      </div>
    </div>
    <div class="your-like">
      <div class="like-title">
        <h3>猜你喜欢</h3>
      </div>
      <div class="like-body">
        <HouseItem>
          <template #house-left>
            <img
              src="http://liufusong.top:8080/uploads/upload_926b41aa5c854ea5c84dae367a106deb.jpg"
              alt
            />
          </template>
          <template #house-right>
            <h3>114</h3>
            <div class="house-ms">一室/14/东/秋月枫舍</div>
            <div class="house-tag" style="width=48px height=19px">近地铁</div>
            <div class="price">
              <span>2100</span>元/月
            </div>
          </template>
        </HouseItem>
      </div>
    </div>
    <div class="footer">
      <div class="collect">
        <van-icon name="star-o" />收藏
      </div>
      <div class="consult">在线咨询</div>
      <div class="appointment">电话预约</div>
    </div>
  </div>
</template>

<script>
import HouseItem from '@/components/house-item.vue'
export default {
  name: 'HaokezfHouseDetails',
  components: {
    HouseItem
  },

  data () {
    return {}
  },

  mounted () {},

  methods: {}
}
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.house-details {
  margin-bottom: 50px;
  background-color: #f6f5f6;
}
.pic {
  width: 100%;
  height: 252px;
  img {
    width: 100%;
    height: 100%;
  }
}
.house-info {
  width: 100%;
  height: 266px;
  padding: 15px;
  background-color: #fff;
  .title {
    h3 {
      font-weight: 400;
      font-size: 16px;
      color: #333;
      margin: 16px 0;
    }
    span {
      width: 40px;
      height: 12px;
      color: #39becd;
      background: #e1f5f8;
      font-size: 12px;
      border-radius: 3px;
      padding: 4px 5px;
      margin-right: 5px;
      line-height: 12px;
    }
  }
  .tip {
    display: flex;
    width: 100%;
    height: 83px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
    div {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      p {
        color: #fa5741;
        font-size: 18px;
        font-weight: bolder;
        span {
          font-size: 12px;
        }
      }
      span {
        font-size: 14px;
        color: #999;
      }
    }
  }
  .details {
    display: flex;
    .left,
    .right {
      flex: 1;
      p {
        height: 26px;
        color: #999;
        font-size: 13px;
        line-height: 26px;
        span {
          color: #333;
        }
      }
    }
  }
}
.footer {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-top: 1px solid #cecece;
  font-size: 17px;
  background-color: #fff;
  div {
    flex: 1;
    text-align: center;
    line-height: 50px;
    color: #999;
  }
  .consult {
    border-left: 1px solid #cecece;
  }
  .appointment {
    color: #fff;
    background-color: #21b97a;
  }
}
.map {
  height: 145px;
  background-color: pink;
}
.assort {
  width: 100%;
  height: 198px;
  padding: 0 10px;
  margin-bottom: 10px;
  background-color: #fff;
  .assort-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #cecece;
  }
  /deep/ .van-grid-item__content {
    padding: 3px 0;
  }
}
.general {
  width: 100%;
  min-height: 265px;
  padding: 0 10px;
  margin-bottom: 10px;
  background-color: #fff;
  .general-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #cecece;
  }
  .house-txt {
    .house-owner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 62px;
      margin-bottom: 10px;
      .owner {
        display: flex;
        align-items: center;
        width: 148px;
        height: 100%;
        .pic {
          width: 52px;
          height: 52px;
          img {
            width: 100%;
          }
        }
        .txt {
          padding-left: 15px;
          p {
            color: #333;
            font-size: 14px;
          }
          span {
            font-size: 12px;
            color: #fa5741;
          }
        }
      }
      .btn {
        button {
          width: 73px;
          height: 28px;
          color: #33be85;
          font-size: 14px;
          border: 1px solid #33be85;
          border-radius: 3px;
          background-color: #fff;
        }
      }
    }
    .house-general {
      padding: 10px 0;
      color: #333;
      font-size: 14px;
      line-height: 1.6;
    }
  }
}
.your-like {
  width: 100%;
  padding: 0 10px;
  margin-bottom: 10px;
  background-color: #fff;
  .like-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #cecece;
  }
}
</style>
